unit untAbsRelatorios;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, QRCtrls, QuickRpt, ExtCtrls, QRExport, QRPDFFilt, Vcl.StdCtrls,
  Vcl.FileCtrl;

type
  TfrmAbsRelatorios = class(TForm)
    Qreport: TQuickRep;
    PageHeaderBand2: TQRBand;
    lbPrime: TQRLabel;
    lbEmpresa: TQRLabel;
    lbData: TQRSysData;
    ColumnHeaderBand1: TQRBand;
    QRLabel3: TQRLabel;
    DetailBand1: TQRBand;
    QRDBText1: TQRDBText;
    PageFooterBand1: TQRBand;
    lbTxtpagina: TQRLabel;
    lbSeparator: TQRLabel;
    lbNumPaginas: TQRSysData;
    lbDescReal: TQRLabel;
    QRLabel6: TQRLabel;
    QRLabel13: TQRLabel;
    lbUsuarioProcessamento: TQRLabel;
    QRPDFFilter1: TQRPDFFilter;
    QRExcelFilter1: TQRExcelFilter;
    FilterComboBox1: TFilterComboBox;
    procedure QreportBeforePrint(Sender: TCustomQuickRep;
      var PrintReport: Boolean);
  private
    { Private declarations }
    FDesRel : String;
    procedure SetDescRel(value : String);
  public
    { Public declarations }
    property xDescRel : String write SetDescRel;
  end;

var
  frmAbsRelatorios: TfrmAbsRelatorios;

implementation

uses VarGlobais;

{$R *.dfm}

procedure TfrmAbsRelatorios.QreportBeforePrint(Sender: TCustomQuickRep;
  var PrintReport: Boolean);
begin
   lbEmpresa.Caption  := EmpresaAtual.NomeFantasia;
   lbDescReal.Caption := FDesRel;
   lbUsuarioProcessamento.Caption := UsuarioLogado.Nome;
end;

procedure TfrmAbsRelatorios.SetDescRel(value: String);
begin
  Self.FDesRel := value;
end;

end.
